package org.jamin.lending.domain.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by xywen on 2016/9/9.
 */
@Entity(name = "p2p_template")
public class Template {

    @Id
    private String code;

    private MessageType type;

    private String content;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public enum Type{
        CONTRACT
    }
}
